﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudModels
{
    /// <summary>
    /// 传感数据视图模型
    /// </summary>
    public class SensorDataModel
    {
        /// <summary>
        /// 传感数据Id
        /// </summary>
        public int SensorDataId { get; set; }
        /// <summary>
        /// 网关id
        /// </summary>
        public int? GatewayId { get; set; }
        /// <summary>
        /// 网关名称
        /// </summary>
        public string GatewayName { get; set; }
        /// <summary>
        /// 传感id
        /// </summary>
        public int? SensorId { get; set; }
        /// <summary>
        /// 传感名称
        /// </summary>
        public string SensorName { get; set; }
        /// <summary>
        /// 传感标识
        /// </summary>
        public string SensorTag { get; set; }
        /// <summary>
        /// 传感单位
        /// </summary>
        public string SensorUnit { get; set; }
        /// <summary>
        /// 传感器数值
        /// </summary>
        public string SensorData { get; set; }
        /// <summary>
        /// 数据类型，从传感表中获取同步而来的数据。
        /// </summary>
        public DeviceDataType DataType { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 创建时间,时间戳
        /// </summary>
        public double? CreateDateTimestamp { get; set; }
    }
}
